package A3D_Test 
{
	public class World 
	{
		
		public function World( gate:ServerGate )
		{
			gate.addEventListener( ServerGateEvent.CL_OBJ_POS, onObjectPosEvent );
		}

		public function onObjectPosEvent( e:ServerGateObjectPosEvent ):void
		{
			if ( objects[e.id] == undefined )
				objects[e.id] = new RemoteClient;
			
			objects[e.id].OnPosFromServer( e );
		}
		
		private var objects:Object = new Object;
	}

}